package com.etheart.framework.core.fulltextsearch;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Highlight {
	/**
	 * 当找不到要高亮的词时，是否保持全文显示
	 * @return
	 */
	boolean showFull() default true;
	boolean isReference() default false;
	String htmlStart() default "<font color=\"red\">";
	String htmlEnd() default "</font>";
}
